var express = require('express');
var router = express.Router();
const{register,login,changeStudent,getUserInfo,getstudents} = require('./../controlers/studentControlers')

// 获取所有学生
router.get('/getstudents', getstudents);

//学生注册
router.post('/register', register);
//学生登录
router.post('/login', login);
//修改学生
router.post('/changeStudent',changeStudent);
//获取当前登录用户信息
router.post('/getUserInfo',getUserInfo);
module.exports = router;
